<template>
  <div class="linkWifiContainer">
    <!--<button @click="scanQRCode" class="linkWifi">扫描二维码</button>-->
  </div>
</template>
<script>
import wx from 'weixin-js-sdk'
export default {
  name: 'wifi',
  mounted () {
    window.setTimeout(() => {
      wx.scanQRCode()
    }, 1000)
  }
}
</script>
<style lang="less" >
.linkWifiContainer {
  width: 100%;
  height: 100%;
  .linkWifi {
    font-size: 24px;
    width: 200px;
    height: 50px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -100px;
    margin-top: -25px;
    border-radius: 5px;
    background-color: #b22451;
    color: #fff;
  }
}
</style>
